/*
 * Powered By [pkuWx]
 * Web Site: http://www.wuxi.ss.pku.edu.cn
 * Since 2015 - 2015
 */

package cn.edu.pku.wxlib.booksku.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.pku.wxlib.booksku.dao.BookskuDao;
import cn.edu.pku.wxlib.booksku.model.Booksku;
import cn.edu.pku.wxlib.booksku.vo.query.BookskuQuery;
import cn.edu.pku.wxlib.vo.query.BookskuFullQuery;
import cn.edu.pku.wxlib.vo.response.BookskuFull;
import javacommon.base.BaseManager;
import javacommon.base.EntityDao;
import javacommon.page.Page;

/**
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class BookskuManager extends BaseManager<Booksku,BookskuQuery,java.lang.Integer> implements BookskuService{
	
	@Autowired
	private BookskuDao bookskuDao;
	public void setBookskuDao(BookskuDao dao) {
		this.bookskuDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.bookskuDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(BookskuQuery query) {
		return bookskuDao.findPage(query);
	}
	
	@Transactional(readOnly=true)
	public Page findFull(BookskuFullQuery query) {
		return bookskuDao.findFull(query);
	}
	public List<Booksku> findByBookId(java.lang.Integer id){
		return bookskuDao.findByBookId(id);
	}
}
	
